﻿// Decompiled with JetBrains decompiler
// Type: Microsoft.InfoCards.PolicyUtility
// Assembly: infocard, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 8E14765A-6610-409A-BA36-099A0642905D
// Assembly location: E:\git\ALLIDA\windll\infocard.exe

namespace Microsoft.InfoCards
{
  internal class PolicyUtility
  {
    public static bool IsSelfIssuedTokenType(string tokenType)
    {
      return "urn:oasis:names:tc:SAML:1.0:assertion" == tokenType || "urn:oasis:names:tc:SAML:1.0:assertion" == tokenType || "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1" == tokenType;
    }

    public static bool IsSelfIssuedClaim(string claimType)
    {
      foreach (string selfIssuedClaimsUri in InfoCardConstants.SelfIssuedClaimsUris)
      {
        if (selfIssuedClaimsUri == claimType)
          return true;
      }
      return InfoCardConstants.PPIDClaimsUri == claimType;
    }
  }
}
